<{include file="header.tpl"}>
    <div class="comBox">
        <div class="comHeader">
            <form action="" method="GET">
                 <input type="hidden" name="ct" value="<{request_em key='ct'}>" />
               <input type="hidden" name="ac" value="<{request_em key='ac'}>" />
                选择时间：<input type="text" name="view_start_time" id="view_start_time" value="<{$view_start_time}>" size="12" maxlength="150" class="Wdate" onfocus="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd H:m:s',maxDate:''})" onclick="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd H:m:s',maxDate:''})"/>
                -<input type="text" name="view_end_time" id="view_end_time" value="<{$view_end_time}>" size="12" maxlength="150" class="Wdate" onfocus="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd H:m:s',maxDate:''})" onclick="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd H:m:s',maxDate:''})"/>
                <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="comTable">
            <form action="" method="POST" id="form1">
            <table class="tableSort">
                <tr class="title">
                    <td>ID </td>
                    <td>图片地址 </td>
                    <td>跳转地址 </td>
                    <td>排序 </td>
                    <td>开始时间 </td>
                    <td>结束时间 </td>
                    <td>设备显示 </td>
                    <td>状态 </td>
                    <td>操作 </td>
                </tr>
                <{if !empty($list)}>
                <{foreach from=$list item=v}>
                <tr>
                    <td> <{$v.id}> </td>
                    <td> <img src="<{$v.img_url}>" width="50"> </td>
                    <td> <a href="<{$v.go_url}>" target="_blank"><{$v.go_url}></a> </td>
                    <td> <{$v.sort}> </td>
                    <td> <{$v.view_start_time}> </td>
                    <td> <{$v.view_end_time}> </td>
                    <td> <{$v.platform}> </td>
                    <td> <{$v.status}> </td>
                     <td>
                        <a href="?ct=pf_homepage&ac=wechat_banner_edit&id=<{$v.id}>" class="edit">编辑</a>
                        <a href="?ct=pf_homepage&ac=wechat_banner_del&id=<{$v.id}>" class="delete">删除</a>
                    </td>

                </tr>
                <{/foreach}>
                <{/if}>
                <tr>
                    <td colspan="11" class="tl">
                        <div class="fl">
                            <a href="?ct=pf_homepage&ac=wechat_banner_add" class="sub">新增banner</a>
                        </div>
                        <div class="pages fr">
                            <{$pages}>
                        </div>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
<{include file="footer.tpl"}>
